package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * IV_Archive实体类
 * 
 * @author 
 *
 */
public class IvArchive {
	/***/
	private Object ID; 
	/***/
	private Integer EmpID; 
	/***/
	private Integer InID; 
	/***/
	private String StartNo; 
	/***/
	private String EndNo; 
	/***/
	private Integer Counts; 
	/***/
	private java.time.Instant ArchiveDate; 
	/***/
	private Integer ArchiveEmpID; 
	/**
	 * 实例化
	 */
	public IvArchive() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public IvArchive(JSONObject obj) {
		this();
		this.setID(obj.get("ID"));
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
		if (obj.get("InID") instanceof Number) {
			this.setInID(((Number) obj.get("InID")).intValue());
		}
		if (obj.get("StartNo") instanceof String) {
			this.setStartNo((String) obj.get("StartNo"));
		}
		if (obj.get("EndNo") instanceof String) {
			this.setEndNo((String) obj.get("EndNo"));
		}
		if (obj.get("Counts") instanceof Number) {
			this.setCounts(((Number) obj.get("Counts")).intValue());
		}
		if (obj.get("ArchiveDate") instanceof java.time.Instant) {
			this.setArchiveDate((java.time.Instant) obj.get("ArchiveDate"));
		}
		if (obj.get("ArchiveEmpID") instanceof Number) {
			this.setArchiveEmpID(((Number) obj.get("ArchiveEmpID")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getID() != null) {
			result.put("ID",this.getID());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		if (this.getInID() != null) {
			result.put("InID",this.getInID());
		}
		if (this.getStartNo() != null) {
			result.put("StartNo",this.getStartNo());
		}
		if (this.getEndNo() != null) {
			result.put("EndNo",this.getEndNo());
		}
		if (this.getCounts() != null) {
			result.put("Counts",this.getCounts());
		}
		if (this.getArchiveDate() != null) {
			result.put("ArchiveDate",this.getArchiveDate());
		}
		if (this.getArchiveEmpID() != null) {
			result.put("ArchiveEmpID",this.getArchiveEmpID());
		}
		return result;
	}
	
	
	/**
	 * 获取ID
	 * 
	 * @return
	 */
	public Object getID() {
		return ID;
	}

	/**
	 * 设置ID
	 * 
	 * @param ID
	 */
	public void setID(Object ID) {
		this.ID = ID;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}
	
	/**
	 * 获取InID
	 * 
	 * @return
	 */
	public Integer getInID() {
		return InID;
	}

	/**
	 * 设置InID
	 * 
	 * @param InID
	 */
	public void setInID(Integer InID) {
		this.InID = InID;
	}
	
	/**
	 * 获取StartNo
	 * 
	 * @return
	 */
	public String getStartNo() {
		return StartNo;
	}

	/**
	 * 设置StartNo
	 * 
	 * @param StartNo
	 */
	public void setStartNo(String StartNo) {
		this.StartNo = StartNo;
	}
	
	/**
	 * 获取EndNo
	 * 
	 * @return
	 */
	public String getEndNo() {
		return EndNo;
	}

	/**
	 * 设置EndNo
	 * 
	 * @param EndNo
	 */
	public void setEndNo(String EndNo) {
		this.EndNo = EndNo;
	}
	
	/**
	 * 获取Counts
	 * 
	 * @return
	 */
	public Integer getCounts() {
		return Counts;
	}

	/**
	 * 设置Counts
	 * 
	 * @param Counts
	 */
	public void setCounts(Integer Counts) {
		this.Counts = Counts;
	}
	
	/**
	 * 获取ArchiveDate
	 * 
	 * @return
	 */
	public java.time.Instant getArchiveDate() {
		return ArchiveDate;
	}

	/**
	 * 设置ArchiveDate
	 * 
	 * @param ArchiveDate
	 */
	public void setArchiveDate(java.time.Instant ArchiveDate) {
		this.ArchiveDate = ArchiveDate;
	}
	
	/**
	 * 获取ArchiveEmpID
	 * 
	 * @return
	 */
	public Integer getArchiveEmpID() {
		return ArchiveEmpID;
	}

	/**
	 * 设置ArchiveEmpID
	 * 
	 * @param ArchiveEmpID
	 */
	public void setArchiveEmpID(Integer ArchiveEmpID) {
		this.ArchiveEmpID = ArchiveEmpID;
	}

	@Override
	public String toString() {
		return "IvArchive [ID=" + ID + " , EmpID=" + EmpID + " , InID=" + InID + " , StartNo=" + StartNo + " , EndNo=" + EndNo + " , Counts=" + Counts + " , ArchiveDate=" + ArchiveDate + " , ArchiveEmpID=" + ArchiveEmpID + "  ]";
	
	}
	
	
}
